package model.cell.tower;

import java.awt.Dimension;
import java.awt.Point;
import java.io.IOException;

import javax.imageio.ImageIO;

import model.bullet.AbstractBullet;
import model.bullet.RocketBullet;
import model.enemy.AbstractEnemy;
import model.game.EnemyWave;



public class RocketTower extends AbstractTower {
	
	
	public RocketTower(Point pos, Dimension dim, EnemyWave enemyWave) {
		
		super(pos, dim, enemyWave);
		_fireInterval = 40;
		
		try {
			_img = ImageIO.read(getClass().getResource("/towerGreen.png"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

		
	protected AbstractBullet _createBullet(AbstractEnemy enemy) {
		
		return new RocketBullet(new Point(_rect.x + _rect.width / 2, _rect.y + _rect.height / 2), enemy, this);
	}

}
